<ui:composition xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:form id="menuBarForm">
    	<p:menubar autoSubmenuDisplay="true" effect="slide" effectDuration="200">
    		<p:menuitem action="#{homeController.onHome}" ajax="true" icon="ui-icon ui-icon-home" value="#{msgs.home}"/>
    		<p:submenu icon="ui-icon ui-icon-lightbulb" label="#{msgs.requirementsModelization}">
    			<p:submenu icon="ui-icon ui-icon-bookmark" label="#{msgs.mapHierarchies}">
    				<p:menuitem action="#{hierarchiesController.onAccess}" ajax="" icon="ui-icon ui-icon-script" value="#{msgs.hierarchiesList}" />
    			</p:submenu>
    		</p:submenu>
    		<p:submenu icon="ui-icon ui-icon-search" label="#{msgs.scriptsElicitation}">
    			<p:menuitem action="#{scriptsElicitationController.onAccess}" ajax="true" icon="ui-icon ui-icon-gear" value="#{msgs.hierarchiesList}"/>
    		</p:submenu>
    		<p:submenu icon="ui-icon ui-icon-scissors" label="#{msgs.scriptsPrioritization}">
    			<p:menuitem action="#{homeController.onAnalyticalPrioritizations}" ajax="true" icon="ui-icon ui-icon-calculator" value="#{msgs.analyticalPrioritizations}"/>
    			<p:menuitem action="#{selectivePrioritizationsController.onSelectivePrioritizations}" ajax="true" icon="ui-icon ui-icon-copy" rendered="#{sessionController.sessionUser.responsable or sessionController.sessionUser.administrator}" value="#{msgs.selectivePrioritizations}"/>
    		</p:submenu>
    		<p:submenu icon="ui-icon ui-icon-wrench" label="#{msgs.administration}" rendered="#{sessionController.sessionUser.administrator}">
    			<p:menuitem action="#{projectsAdministrationController.onAccess}" ajax="true" icon="ui-icon ui-icon-note" value="#{msgs.projectsAndVersions}"/>
    			<p:menuitem action="#{servicesAdministrationController.onAccess}" ajax="true" icon="ui-icon ui-icon-contact" value="#{msgs.services}"/>
    			<p:menuitem action="#{usersAdministrationController.onAccess}" ajax="true" icon="ui-icon ui-icon-person" value="#{msgs.usersAndRights}"/>
    		</p:submenu>
    	</p:menubar>
    </h:form>
</ui:composition>